package com.yc.security.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author kukaha
 * @version 1.0.0
 * @ClassName SecurityProperties.java
 * @Description 安全动态配置类
 * @createTime 2021年03月26日 21:42:00
 */
@Component
@ConfigurationProperties(prefix = "yc.security")
public class SecurityProperties {

    /**
     *  将application.yml 中的 yc.security.authentication 下面的值绑定到此对象中
     */
    private AuthenticationProperties authentication;

    public AuthenticationProperties getAuthentication() {
        return authentication;
    }

    public void setAuthentication(AuthenticationProperties authentication) {
        this.authentication = authentication;
    }

}
